// 自动生成模板Banner
package autocode

import (
	"github.com/flipped-aurora/gin-vue-admin/server/global"
)

// Banner 结构体
// 如果含有time.Time 请自行import time包
type Banner struct {
	global.GVA_MODEL
	Image    string `json:"image" form:"image" gorm:"column:image;comment:图片;size:255;"`
	Link     string `json:"link" form:"link" gorm:"column:link;comment:链接;size:255;"`
	IsDelete *int   `json:"isDelete" form:"isDelete" gorm:"column:is_delete;comment:（0-有效；1-无效）;size:1;"`
	SourceO  string `json:"sourceO" form:"sourceO" gorm:"column:source_o;comment:参数1;size:255;"`
	SourceT  *int   `json:"sourceT" form:"sourceT" gorm:"column:source_t;comment:参数2;size:11;"`
	Sour     *int   `json:"sour" form:"sour" gorm:"column:sour;comment:排序;size:0;"`
}

// TableName Banner 表名
func (Banner) TableName() string {
	return "banner"
}
